package com.hebeu.gfh.service;

import com.hebeu.gfh.pojo.po.TextVote;
import com.hebeu.gfh.pojo.po.voteResult;
import com.hebeu.gfh.pojo.vo.voteInfo;

import java.util.List;

/**
 * @Author: 刘剑利
 * @Version: v1.0
 */
public interface textVoteService {
    public void initTextVote(TextVote textVote);

    public List<TextVote> getVoteList(int userId);

    public void deleteVote(int voteId);

    public TextVote findVoteInfoByvid(int vid);

    public void updateVoteInfo(TextVote textVote);

    public int voteResult(int voteId, int index);


    public int voteSelected(int voteId, int index, int userId);

    public int voteSelected(int voteId, int userId);

    public void castVote(voteResult voteResult);

    public List<voteInfo> getVoteByuserId(int userId);
}
